package com.ruoyi.auth;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 默认从 application.yml中获取配置数据
 * email：954219492@qq.com
 */
@ConfigurationProperties(prefix = "auth")
@Data
public class UnifiedAuthenticationProperties {

    private String applicationId;
    private String privateKey;
    private String applicationWord;
    private String version = "1.0";
    private String charset = "UTF-8";
    private String encryptionAlgorithm = "SM2";

    private String baseUrl = "https://tysfrz.isdapp.shandong.gov.cn";
    private String loginPath = "/jpaas-jis-sso-server/sso/entrance/auth-center";
    private String signPath  = "/jpaas-jags-server/interface/createsign.do";
    // 三者相同
    private String exchangeTokenPath = "/jpaas-jags-server/interface/gateway.do";
    private String naturalUserPath   = "/jpaas-jags-server/interface/gateway.do";
    private String legalUserPath     = "/jpaas-jags-server/interface/gateway.do";

}
